package com.jsaber.blogSystem.utils;

/**
 * @author zhouzijia
 * @version 1.0
 * @description
 * @date 2020/12/13 15:14
 */
public class PageUtil {

    public static Integer getPage(Integer page){
        if(page == null || page <= 0){
            return 0;
        }else {
            return page - 1;
        }
    }
}
